import requests

from interface_item.utils.logger import logger

'''
和接口操作相关的封装，不关心具体业务
'''

class BaseApi:
    def base_request(self, method, url, **kwargs):
        logger.debug(f"请求地址：{url},请求方法：{method}")
        res = requests.request(method, url, **kwargs)
        return res
